<template>
  <!--转卡页面-->
  <div>
    <p><img src="../../../assets/zhuankabanner.png" alt="" width="100%"></p>
    <ul class="lists">
      <li v-for="item in goodsList">
        <p><img :src="item.coverImg | imgPathFilter" alt="" width="125"></p>
        <ul>
          <li>{{item.goodsName}}</li>
          <li>
            <router-link :to="{path:'/zhuankaform',query:{accountGoodsId:item.accountGoodsId}}">
              <wv-button type="default" :mini="true">转卡</wv-button>
            </router-link>
          </li>
        </ul>
      </li>
    </ul>
  </div>
</template>

<script type="text/ecmascript-6">
  import {transferCardList} from '../../../../test/unit/http'
  import {Toast} from 'we-vue'
  export default {
    name: '',
    props: {},
    data() {
      return {
        goodsList: []
      };
    },
    methods: {},
    created() {
      transferCardList({}).then(res => {
        console.log(res);
        if (res.code == 100) {
          this.goodsList = res.object;
        } else {

        }
      })
    },
    components: {}
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less" rel="stylesheet/less">
  .lists {
    > li {
      display: flex;
      margin: 10px 10px 15px;
      padding-bottom: 10px;
      text-align: left;
      border-bottom: 1px solid #ddd;
      p {
        flex: 0 125px;
      }
      ul {
        padding: 0 10px;
        width: calc(100% - 145px);
        li:first-child {
          font-size: 17px;
          color: #1f1f1f;
          margin-bottom: 15px;
        }
        li:last-child {
          text-align: right;
          button {
            border: 1px solid #2e94f0;
            border-radius: 25px;
            background-color: #fff;
            font-size: 15px;
            color: #2e94f0;
          }
        }

      }

    }
    :last-child {
      border-bottom: none;
    }
  }
</style>
